const asyncRoutes = [
  {
    path: '/',
    redirect: '/home',
    component: 'Layout',
    meta: { title: '', svg: '' },
    children: [
      {
        path: 'home',
        name: 'home',
        component: 'home',
        meta: { title: '首页', svg: 'homeicon' }
      }
    ]
  },
  {
    path: '/system',
    name: 'system',
    redirect: '/system/department',
    component: 'Layout',
    meta: { title: '系统管理', svg: 'systemicon' },
    children: [
      {
        path: 'department',
        name: 'department',
        component: 'system/department',
        meta: { title: '机构管理', svg: '' }
      },
      {
        path: 'user',
        name: 'user',
        component: 'system/user',
        meta: { title: '用户管理', svg: '' }
      },
      {
        path: 'role',
        name: 'role',
        component: 'system/role',
        meta: { title: '角色管理', svg: '' }
      },
      {
        path: 'jurisdiction',
        name: 'jurisdiction',
        component: 'system/jurisdiction',
        meta: { title: '权限管理', svg: '' }
      }
    ]
  },
  {
    path: '/goods',
    name: 'goods',
    component: 'Layout',
    redirect: '/goods/goodsCategory',
    meta: { title: '', svg: '' },
    children: [
      {
        path: 'goodsCategory',
        name: 'goodsCategory',
        component: 'goods/goodsCategory',
        meta: { title: '商品分类', svg: 'goodsicon' }
      }
    ]
  },
  {
    path: '/tool',
    name: 'tool',
    redirect: '/tool/systemTools',
    component: 'Layout',
    meta: { title: '', svg: '' },
    children: [
      {
        path: 'systemTools',
        name: 'systemTools',
        component: 'systemTools',
        meta: { title: '系统工具', svg: 'toolicon' }
      }
    ]
  }
]

export default asyncRoutes
